package top.arwtec.mcm.enums;

import lombok.Getter;

public enum UserEnum {
    USER_NOT_EXIST(10001, "用户不存在"),
    USER_PASSWORD_ERROR(10002, "密码错误"),
    USER_NOT_LOGIN(10003, "用户未登录"),
    USER_NOT_ADMIN(10004, "用户不是管理员"),
    USER_NOT_PERMISSION(10005, "用户没有权限"),
    USER_NOT_EXIST_OR_PASSWORD_ERROR(10006, "用户不存在或密码错误"),
    USER_NOT_EXIST_OR_PASSWORD_ERROR_OR_NOT_ADMIN(10007, "用户不存在或密码错误或用户不是管理员");

    @Getter
    private int code;
    @Getter
    private String msg;

    UserEnum(int i, String msg) {
        this.code = i;
        this.msg = msg;
    }

}
